package org.winexpress

class ProductType {

    int id
    String productTypeName
    String description
    
    static hasMany = [products:Product]
    
    static mapping = {
        description type: 'text'
    }
    
    static constraints = {
        id(blank:false, unique:true)
        productTypeName(blank:false, unique:true)
        description(blank:false)
    }
}
